<!DOCTYPE html>
<html lang="en">
<head>
	<meta charset="UTF-8">
	<meta name="viewport" content="width=device-width,initial-scale=1,user-scalable=0">
	<title>首页</title>
	<link rel="stylesheet" type="text/css" href="__HOME__/css/bootstrap.css">
	<link rel="stylesheet" type="text/css" href="__HOME__/css/weui.min.css">
	<link rel="stylesheet" href="__HOME__/css/jquery-weui.min.css">
	<link rel="stylesheet" type="text/css" href="__HOME__/css/style.css">

</head>
<body>
	<div class="container-fluid">
		<div class="row" style="background-color:#000; padding:8px;">
			<div class="weui-search-bar" id="searchBar" style="background-color:#000; border:none;">
			  <form class="weui-search-bar__form" style="background-color:#000;" action="{:url('Home/Index/index')}" method="post" >
			    <div class="weui-search-bar__box" >
			      <i class="weui-icon-search"></i>
			      <input type="search" class="weui-search-bar__input" id="searchInput" name="key" placeholder="搜索" required="">
			      <a href="javascript:" class="weui-icon-clear" id="searchClear" ></a>
			    </div>
			    <label class="weui-search-bar__label" id="searchText">
			      <i class="weui-icon-search"></i>
			      <span>搜索</span>
			    </label>
			  </form>
			  <a href="javascript:" class="weui-search-bar__cancel-btn" id="searchCancel">取消</a>
			</div>
		</div>
		<div class="container-my">
			<div class="row paititle">
				<img src="__HOME__/images/nowpai.jpg">
			</div>
			<div class="row" >
				{volist name="havelist" id="vo" mod="2" }
					{eq name="mod" value="1"}
						<div class="col-sm-6 col-xs-6 pai-r">
					{else/}
						<div class="col-sm-6 col-xs-6 pai-l">
				    {/eq}
							<div class="thumbnail">
								<a target="_blank" href="{:url('Home/Jpai/index', ['id' => $vo['id']])}"><img src="__PUBLIC__<?php if($vo['thumb']) echo $vo['thumb']; else echo '/static/home/images/myjpai.jpg'; ?>" style="height: 115px;width:100%;" alt="..."></a>
								<div class="caption pai-des">
								        <p style="height: 45px; overflow: hidden;"><span class="pmaiz" style="color:red; border:1px solid red;"><?php if($vo['isend'] == 1) echo '拍卖结束'; else echo '拍卖中'; ?></span>&nbsp;&nbsp;<b class="pdestitle">{$vo.title}</b></p>
                                                                   	<p>搜索编号：{$vo.id}</p>
									<p>拍卖时间：{$vo.starttime|date="m月d日H:i时",###}</p>
									<p class="text-center">起拍价格<span class="pdesprice">{$vo.startprice}</span>元</p>
								</div>
							</div>
						</div>
				{/volist}
			</div>	

			<!-- 即将拍卖 -->
			<div class="row paititle">
				<img src="__HOME__/images/jiangpai.jpg">
			</div>
			<div class="row" >
				{volist name="soonlist" id="vo" mod="2" }
				{eq name="mod" value="1"}
				<div class="col-sm-6 col-xs-6 pai-r">
					{else/}
					<div class="col-sm-6 col-xs-6 pai-l">
						{/eq}
						<div class="thumbnail">
							<a target="_blank" href="{:url('Home/Jpai/index', ['id' => $vo['id']])}"><img src="__PUBLIC__<?php if($vo['thumb']) echo $vo['thumb']; else echo '/static/home/images/myjpai.jpg'; ?>" style="height: 115px;width:100%;" alt="..."></a>
							<div class="caption pai-des">
								<p style="height: 45px; overflow: hidden; width:auto;"><span class="pmaiz">即将拍卖</span>&nbsp;&nbsp;<b class="pdestitle">{$vo.title}</b></p>
								<p>搜索编号：{$vo.id}</p>
								<p>拍卖时间：{$vo.starttime|date="m月d日H:i时",###}</p>
								<p class="text-center">起拍价格<span class="pdesprice">{$vo.startprice}</span>元</p>
							</div>
						</div>
					</div>
					{/volist}
			</div>


		</div>
	</div>

	<script src="__HOME__/js/jquery.min.js"></script>
	<script src="__HOME__/js/jquery-weui.min.js"></script>
	<script src="__HOME__/js/swiper.min.js"></script>
	<script src="__HOME__/js/city-picker.min.js"></script>
        <script>
        $(document).ready(function () {
            var josnstr='{$startstr}';
            var arr=JSON.parse(josnstr);
            function myrefresh(arr) {
                window.setInterval(function () {
                    var timestamp=Date.parse(new Date());
                    timestamp=(timestamp/1000)+"";
                    //alert(timestamp);
                    if($.inArray(timestamp, arr)!=-1){
                        window.location.reload();
                    }
                },1000);
            }

            $(function () {
                //alert(arr);
                if(arr){
                    myrefresh(arr);
                }
            });
        });

	</script>
</body>
</html>
